import request from "@/utils/request";

// 获取好友列表
export function getFriendListApi() {
  return request({
    url: "/friend/get_friendship_list",
    method: "get",
  });
}

// 添加好友
export function addFriendApi(data: any) {
  return request({
    url: "/friend/add_friendship",
    method: "post",
    headers: {
      "Content-Type": "application/json",
    },
    data,
  });
}

// 更新好友关系
export function updateFriendApi(data: any) {
  return request({
    url: "/friend/update_friendship",
    method: "put",
    data,
  });
}
